How well it will work depends on what chipsets are present in the two computers. If they are identical, it'll work great. Things could go downhill from there.
If there are boot problems (PC keeps rebooting with new drive) A Windows REPAIR INSTALL can be used to fix it. That reconfigures Windows for the new motherboard without forcing you to re-install all your applications. But you'll have to re-install any Windows Service Packs or Windows Updates that aren't contained in your Windows Install disk.