I don’t think you need that information to create the links.
I suggest you create a Path and add this expression to it. That way, you can have all the benefits from shapes(stroke width, color, dots, linecap etc)
You can even create it in the same layer with the ellipses. If you create the Path in the same layer, add this expression to it:
pos1 = content("Ellipse 1").transform.position;
pos2 = content("Ellipse 2").transform.position;
dots = [pos1,pos2];
createPath(dots)
If you want a different layer, make sure both have the same position(you can link the position of this second layer to the one with the ellipses) and add this expression to your Path:
L=thisComp.layer("Ellipses");
pos1 = L.content("Ellipse 1").transform.position;
pos2 = L.content("Ellipse 2").transform.position;
dots = [pos1,pos2];
createPath(dots)
Andrei
My Envato portfolio.