I think the only way is to load it in a browser and let it work itself through normally. Various add-ins offer to show all the media on a page; you could write an add-in that accessed that list and returned it programmatically rather than displaying it in a GUI.