If you still have your installation media, or, at the very least, your old license key, you should be able to reinstall Windows 10 without having to purchase a new copy. However, if you have neither of those, you will likely have to purchase a new license for the new board since Microsoft sees that as a "new system".