Video ram and extended ram via bios.

does anyone know how to get the video ram and extended memory via bios.  I tried bios.h with _memsize and i only could get the base  size.