Hi
Assuming you want to reuse Windows be aware of problems detailed below
If you want to plug in old hard drive as an addition to New Windows hard drive less problems but programs not re usable until re installed but data available (subject to account access problems)
Assuming the hard disk has Microsoft Windows of some version on it it is likely to object during startup mainly due to different motherboard chipset especially the hard disk controller chipset and drivers.
most likely BSO 0x0000007C
If the Windows is OEM the licence is not transferable to a different motherboard and you will get a warning message that it needs to be reactivated.
(but cant be activated anymore unless you pursuade Microsoft call centre staff...