Is there a way to get username, after loginwithAPIKey is successful?

We have successfully logging in using API KEy and secret key. We are using both the methods InitConnectionWithApiKey and LoginwithAPIKey 

After logging  in, is there a way to get the Username associated with that APIkey?

Thanks much for help in advance.