I haven't tried this yet, but as a premium subscriber, I'm pretty sure I could save songs as an offline playlist, and then set Spotify to offline mode.
You can't set spotify itself to offline except on the phone app. You can however set a specific playlist to offline mode which will 'sync' the music to your HDD and plays it from there.