Depends on the shape of the geometry.
Get the normal at the surface midpoint as one method if you’re looking at cubes. If the Z value is ~1 or ~-1, it’s near the top. That or you can get a bounding box and find the surface(s) closest to the min point and max point. If your geometry is complicated you may want to consider a select face method to speed things along.