The windows account name can be seen as one the folders in C:\Users. Assuming you changed your windows account name to something different to the folder, can programs see your new windows account name given admin rights?
Programs can get the current username using GetUserName() and the path of profile directory e.g. using GetUserProfileDirectoryA(). They use API calls instead of deducing something from directory names. And no administrative rights required for these.