To use, you will need ROOT installed (with pyROOT to use the python script). Then you can simply do
python get_volume_positions.py <path/to/geometry>
Update get_volume_positions.py with the volumes you want to look for. Make sure the name is correct (probably need to remove "PV" at the end of volume names).