I have a stack overflow account with a Google account synced with it.Recently I have forgotten my Google account ID and I cannot log in to stack overflow. I have seen my account info from another persons stack overflow account.I know my Stack overflow Username , Is there any way to retrieve my Google account ID
If I understand you correctly, you'll have to contact the Stack Exchange team. If you make sure to link to the other account, and if you can include as much information to verify your identity as possible, they'll be able to merge your current account with it, thereby alleviating the problem.
There's no way to see your email from that account without being logged in, for privacy reasons. They'll work some internal magic to verify your identity against that other account.