That should be possible. At least it was possible for previous OS X's, but I don't see why they changed it. So yes, you can install 10.10run the installer from the second hard drive onto the first one. You can even install any other OS X onto another partition on the same hard drive.