Without looking i would say you need to get that info from the SQL server that blackberry stores its info in. It could be on the blackberry server as an SQL Express 2005 instance or you could have it stored in an existing SQL server if you have one, just depends on how you set it up. Use enterprise manager or management studio to find the data you want, then create your script to go get it.
RoadKi11
"This apparent fear reaction is typical, rather than try to solve technical problems technically, policy solutions are often chosen." - Fred Cohen