Hole coordinates into an excel table


Good morning,

I need to program a robot and for this purpose I need to know the x,y coordinates of holes in a cad-model in reference to an arbitary (chosen by me) zero point. Then I need to extract this information into an Excel-file.
I could do this by manually checking the distance of each hole to the zero point, but this is time consuming and not the preferable way of doing things. The cad-models I use do not generally use a hole table for the holes, so this is not an option, either. Does anyone know any cost-effective solution to my dilemma?