height is contained in the positional array as select 2. so if you want to check the height of something, do it thus:
_objheight = getpos obj select 2
once you have that value, you already know how to check if it's below/above another value.
similarly, when you setpos something, there's space to put the height value, such as
obj setpos [x,y,z]