Use microcontroller to measure the microcontrollers voltage
Use a lower fixed analog reference voltage (e.g. many AVR MCUs have an internal 1.1V reference), and put the supply voltage through a voltage divider in order to reduce it below the reference voltage. This will allow you to measure the reduced supply voltage and get a result that is proportional to it.