Is there a way to export co-ordinates of all the body centers in a part to a text or excel file?

I have a bunch of bodies in a part file. I would like to export the center of mass's of all the bodies to a text file or an excel file. Is there any way to do this? 

Thank you for your help in advance. 

SolidworksGeneral