Tracers of discs and winds around intermediate- and high-mass young stellar objects