To view your history in the Apple Music desktop app, just click the three-line Playing Next icon next to the song playing in the top right corner of the screen.