The serial number is on the case somewhere.
On Ultra 2's it is on the right hand side of the machine near the front, as well as on the back.
On the bigger enterprise machines it is inside the front door, and on the back.
The only number held in the software is the hostid which is read with the command 'hostid'.
Steve