C# How to check if it is mine online?

i wanted to know how to check online if the gameobject is mine before the other actions happen