Quantification of multicomponent droplet evaporation through optical resonances