Personal address book R4, R5

Apparently, the template name for the PAB is the same for R4 and R5. Any suggestion on how can I use a lotus script to detect the differences?

I like a script that can detect and differentiate the R4 PAB. I want to track down all the R4 PAB of all users.

Any tips