You can use an ATX PSU for that. You may need a load resistor depending on the model if the HDD is low power.

Connect 5v to RPi (with a fuse and potentially a zener diode), connect 12v to HDD via standard molex, job done.