Create translation provider server
var translationProviderServer = new TranslationProviderServer(uri, false, UserName,Password);
var translationMemories = translationProviderServer.GetTranslationMemories(TranslationMemoryProperties.None
); //get a list with all the tms
How to get the path of Translation Memory
foreach (var tm in translationMemories)
{
var tmPath = tm.ParentResourceGroupPath == "/" ? "" : tm.ParentResourceGroupPath;
var path = tmPath + "/" + tm.Name;
}