Except in rare cases where you and your friend happen to have computers with the same motherboard (or something really close), exchanging hard drives like this will not work. When windows is installed, it installs the drivers for the computer's specific hardware. If you move the hard drive to a different computer, Windows will try but fail to load because it does not have the drivers it needs.
On a friend's computer, go to this site:
Microsoft Windows and Office ISO Download Tool
follow the instructions and you can download the ISO to burn a copy of your Windows disk. There is a sticker on your computer that will have your original ***********. This *********** will only work with whatever version of Windows came with the computer.
Note: If there were important files on your old hard drive, do not use it. An expert can possibly recover your data. Forget about the IDE drives and get another SATA or the speed will drive you crazy. IDE has data transfers at the rate of up to 133MB/s while SATA has data transfers at the rate of up to 6 Gb/s
IDE vs SATA
From the age of the motherboard, it looks like you probably had Windows XP which is no longer being supported. See bottom link.
Have you considered trying something like this:
Main Page Linux Mint
It can actually be installed and run from a CD or flash drive so you can try it. If your old hard drive is connected and the file system has not been damaged, you can even use this to copy files off before you reuse the hard drive.
https://www.microsoft.com/en-us/windowsforbusiness/end-of-xp-support