Local Optical Spectroscopy in Quantum Confined Systems: A Theoretical Description