Which subject are you taking?

or

Which professor are you taking?