You can just use compare xy conditions of the object, or use the system pick by point.
You have to be careful because the objects use sub pixel coordinates, so even putting whole numbers to compare might not be exact. To deal with it you would have to "snap" the coordinates to a specific range then compare them. something like: int(object.x/n)*n int(object.y/n)*n