Your copy of Windows is locked to the PC on which you purchased it. You cannot transfer that license to another PC.
You can upgrade any components or peripherals on your PC and keep your license intact. You can replace the motherboard with an identical model or an equivalent model from the OEM if it fails. However, if you personally replace or upgrade the motherboard, your OEM Windows license is null and void.
microsoft ^