We have recently upgraded to VS 2017 and Visual Studio Team Services.
We have a set of automated tools that perform various source control related tasks on behalf
Check this registry path: HKEY_CURRENT_USER\Software\Microsoft\VSCommon\14.0\ClientServices\TokenStorage\VisualStudio\VssApp
(Tested in VS2017, it stores in 14.0 too)
You also can check credential manager.
On the other hand, you can change storage key:
var c = new VssClientCredentials();
c.Storage = new VssClientCredentialStorage(storageKind: "VssApp2", storageNamespace: "VisualStudio");
TfsTeamProjectCollection _tfs = new TfsTeamProjectCollection(u, c);