Astro mechanics can indicate the future position of stars based on the math. If they can predict where they are going, they can also calculate where they came from.
It’s not really rocket science, although it might be a prerequisite.
All that needs answered then is “Where was the beginning point ?”