Closest thing I could think of is to fire an upward raycast from the player's location, and then get the object that it hits. If the object is a brick, you can do stuff involving positions, vectorAdd, and the height of the brick as defined in the brick's datablock, but for things that don't have a height defined like a brick does, it could be trickier.