Track Multiple Moving Objects Simultaneously
After effects can definitely track 2D motion and allow you to export x,y coordinate pairs, but it does not work in realtime.  You would have to import the videos, then track each object (and correct for any mis-tracking) then export the tracked data as text.

This probably isn't the best tool for the job - I'm guessing there are better realtime motion tracking systems for what you need.

You can read about how 2D tracking works here:
https://helpx.adobe.com/after-effects/using/tracking-stabilizing-motion-cs5.html