Probing stellar evolution through spectroscopy of horizontal branch stars