Gameobject Differentiation

Given two empty GameObjects with the same name and position, is there a way to differentiate between the two through code?

GetInstanceID