Answer:
There are many ways to determine this. Observing it directly, or collecting observations, over a long period of time can reveal an orbit. Periodic variation or non-linear variation in parameters such as parallax, proper motion or radial velocity can also reveal companions.