In the .vs/<project>/v17 folder (this is VS2022), there's a file called DocumentLayout.json - it has the list of open tabs and whether they're pinned or not.