If they are different objects, they cannot have the same name.
If they are same objects (Create Object), then they ALL would have the same name.
Distinguishing and corresponding to a specific object then would be through its UID (Unique ID) or "Picking by near/far" etc. feature.
Otherwise, there is no 'expression' to compare "names" of Sprites, but there are ways around it.