In the past, I've worked on a project that needed to do this. We used the DbgHelp API that Andrew mentioned in his comment to download the relevant .PDB
files and to look in them for the offsets we needed.
I've since moved on, so I don't have access to look at the source code for that project, but this page is a good place to start.