This all depends on what Windows 10 license you purchased.
An OEM license, you might be screwed. That OEM license is tied to that original motherboard. You'd have to beg Microsoft to reuse that license on new parts. Sometimes they will, sometimes they won't. Better to ask forgiveness, than to ask them before you swap parts.
If a Retail license, no problem.
Clean install with the new hardware.
Swap parts, install the OS, see if it activates. If it does not, call MS and see what they say.