hmm....first I would suggest signing out everywhere, but if another account is assigned, it's possible your friend may have changed the password...maybe?
I recommend getting with your friend and asking how they log in. If you guys can't straighten it out together, you can always contact Spotify Support and they can resolve this for you to help you reclaim your account. They can be reached through their Twitter Page @SpotifyCares or through the online contact form.
Make sure to check your inbox and junk folder for an email from Spotify. Once you get it, make sure to reply back right away, even if it says it's from a "no-reply" email.Cheers!