How can I install macOS on the second hard drive inside a computer?
Yes, you can. You should 1st check if you can read the windows disk. If so, make sure there is nothing on it you want. If you don't care what's on it skip that and go to disk utility. Using disk utility you can erase the windows disk and reformat it in a format you want. Then you can load the Mac System on the disk.