Get a members membership level

Is there a function that returns a users membership? I want to output a users membership level next to their name on my site.

I had a look in plugin folder but couldn't see any obvious template functions file.

Thanks