Yes you need to get a government gateway login details first, once you have that it’s easy enough to lookup your national insurance contribution history and your expected future pension payments.
Thanks for your prompt response. My visa type is 60 days visa exemption so I take it according to your advice I’ll just have to fill a form to re-enter Thailand.