I've once coded my own AABB movement function for my sidescroller with box and polygonal collision detection on models as well as polygonal block detection.
All you need to know/ use is "ent_buffers". Using this function you could easily loop through all blocks (and their vertices) to calculate the information you need (min/max) manually.