If you change the motherboard you will also have to buy a copy of Windows since the preinstalled version is tied to the existing motherboard and therefore won't run after the motherboard has been changed, and factory recovery won't work on a different board either.
If you want the freedom to change the motherboard without any of the above complications, don't buy a factory-built computer. Build your own or have one built for you at a local, independent computer shop.