When Windows activated, it detects your motherboard ID, and sends it off to a database. Whenever the product key is entered, it will scan to make sure the motherboard that's in the system is associated with the product key. So as long as you keep the same motherboard, as many as you like.
That's only with OEM version. A full retail version can be re-installed even with motherboard change.