Item
class has a property called Languages
which returns list of languages that the item has content in.
Sitecore.Globalization.Language[] langs = item.Languages;
and if you need just string list with names of the languages you can use:
List<string> langNames = item.Languages.Select(l => l.Name).ToList();