You can use whichever programming language you know. Most will be able to do this.
Probably something like Visual Basic will be best, assuming you're using Windows, as this is an easy language to program in.
As for hardware I would suggest getting a PIC with a USB interface built in, then the PIC will handle the motor signals and the USB interface means you can connect it easily to the computer.