'I borrowed a laptop to listen to the song' is the correct answer. Since we are talking about this laptop for the first time, we use 'a' before it. 'My favourite song' has already been talked about, so when I talk about it again, I use 'the' before it.