If a retail copy of Windows 10, one is able to build new system, while stopping use of the original, and fresh install elsewhere...
If OEM copy of WIndows (build your own system), not as *technically* valid within EULA to move it from one system to another, but, that's a complex ethics story.
WIth a pre-built (HP/Dell) manufacturer's OEM copy, you are technically not allowed to wipe and move to a brand new system, and, often the manufacturer will look for a certain type of motherboard or hard drive to prevent such 'upgrades'.