Quite simple actually:
import xml.etree.ElementTree as ET
import sys
if len(sys.argv) < 2:
print("Usage: %s {svgfile}" % sys.argv[0])
exit(2)
svgFile=sys.argv[1]
svg=ET.parse(svgFile).getroot()
print '%7.2f %7.2f %s' % (float(svg.attrib['width']),float(svg.attrib['height']),svgFile)
As far as I can tell,
xml.etree.ElementTree is part of the Python package distributed with the Windows Gimp version.
In some files, you'll find heigh/width specified as '150px' or '2.4in' or '1200pt' so you may have to be a bit cautious when converting the values. Some files also define a 'viewBox' attribute.