One of my colleagues at Catapult has written an excellent blog about using Powershell to read and extract Lync Topology information from the TBXML file and also create a Visio drawing layout of the topology. Highly recommend you read his post here: http://emptymessage.com/?p=49