Get-AssignedLineURI is a script to list all used numbers in a Lync deployment.
The current version 2_1 can be run without interaction, and will list all endpoints, applications, services, users and private lines.
The output is in a html file for later reference. There will shortly be an update to this script, with much more flexibility.
Link to the download at the TechNet Gallery is in the top menu.