I solve this scripting puzzle by firing a series of spells up from the ground and detecting the distance they traveled before hitting the ceiling.
Not perfect but it will do for now.
A cell doesn't have a "height" per-se, but I do believe its extents have a limit. If you're talking about calculating the height of a static room or something similar, I'd suggest that you use a couple of critters and getLOS to find it. I believe QQuix had an old resource on the Nexus that you could refer to.