Input-output formulation of quantum light spectroscopy and its application to study photosynthetic complexes