Coordinates of embedded beams

Hello there

I have a model contains a lot of embedded beams and i want to get coordinates x, y, z of each point of beams. Can someone please tell, how i can get them? Сonsidring large number of embedded beams in the model, i prefer do this using the command line and running commands options.

Thanks!