SPKR, #00 gets you into the programming mode for the station, the display will indicate the extension number. SPKR again to disconnect.

You can pull the Extension report and import into Excel. Sort by Slot and Port to get a nice list