I think you are a bit confused, "memory" for PCs usually refers to Random Access Memory (RAM) which are sticks installed inside your computer. You do not install programs on RAM, you install them onto hard drives.
If you have more than one hard drive, then yes you can install any program onto a different drive. This is done by changing the drive path to install it to when you first install the program. If you already have existing programs on your C drive that you'd like to move, than you can uninstall them from the C drive and then reinstall them on a different hard drive.
If you only have one hard drive then you're out of luck, uninstall some stuff.