When you install a program it will ask you where you want to install it,
Ex: C:program files program name
Just change the c: to the other drive's letter.
Even though the program is installed on a different drive than your OS, you will still be able to access it tha same way. If you want to move the program to your other drive, I would recommend reinstalling the program.