I don't believe that Windows 7 Retail is married to the motherboard; I believe that only the OEM pre-install from Dell or HP and the System Builder versions are.
You would also need to remove it from the old hard drive if it is still working...which you would want to do anyhow for the space.