Although the database serial number is not generally available through the API the following solutions should be considered:  
Note: You may encounter "GENINFO" fields in the IBBUtilityCode object but these are used internally but not publicly supported in the API