In exactly the same way as you would measure the bandgap of a pure material. Mainlt 2 options:
1) Compute the electronic band structure and plot it using the Bandstructure Analyzer. Then use the mouse to measure band-to-band energy differences.
2) Compute the electronic DOS, and plot it using the 2D Plot plugin, zoom in around the Fermi level to see the band gap.