Part numbers are stored in the Database. Specifically, in the WTPartNumber field of the WTPartMaster table. By querying this field, you can list out all of the part numbers used in Windchill. For example, the below query will list out the name and number of every part in your DB:
select name,WTPartNumber from WTPartMaster;