FindWindowEx to retrieve the handle you're looking for.
GetWindowText to get the text associated with that handle.
You need to use Interop.Call and Interop.Allocate to work with these Win32 API functions, which might be scary at first sight. Have a look at some more complex scripts and see how those use the Win32 API.