Study-time [topic-は] earphones [with-で] music [obj-を] listen (polite).
~とき ('when X'), with the plain form of the verb, sets up a temporal scope. で here is instrumental — 'by means of earphones.' A simple, practical sentence useful for describing habits.