You shouldnt be using an OS "serial number" for security. OS changes are made all the time, and that would invalidate your security and aggravate your user. Period. Instead, use hardware-based identifiers, such as a network cards MAC address and/or a hard drives serial number.