Spawning of blocks are based not on sea level but on how far below the surface a block was on world generation. It would be nice to see that value just like we see the xyz coordinates of a block.
Currently the best workaround is dropping a marker on your location and subtracting the difference and assume the top layer had not been altered.