CUCM does not store the serial number of phones within the database, you will need to grab that type of information from the phone web page either manually or with software.
There are free and paid versions of software which can be used, both of which are linked on the previous thread.
There is also a great section on the Cisco docwiki which addresses this question.