You would need to get the Window handle of the browser, and then find some way to extract the URLs from each tab. Assuming each tab is a Window then you can enumerate the child windows and check each one in turn. See
here[
^] for the various API calls to enumerate windows.