Using the PP-Capture API, you cannot read the information from the pen that's currently docked. That information is managed by the Pen Director.

However, you can retrieve the pen's Serial Number from any PGC file received by a process. The following code assumes the current data file is the PGC, retrieves the Pen's Serial Number from the PGC and adds the information to the PlanetPress Workflow Log:
set oPGC = CreateObject("CaptureLib.PgcUtility")
oPGC.LoadFromFile Watch.GetJobFileName
Watch.Log "Pen Serial Number: " & oPGC.GetPenProperty(4), 4
Technical Product Manager
I don't want to achieve immortality through my work; I want to achieve immortality through not dying - Woody Allen