You shouldn't 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 card's MAC address and/or a hard drive's serial number.