Yes, generally you can do so. You will need to use apGetProperty on the id of the robot.
Attached are 2 example programs that have been used in the field; as part of their process, they get or set information to a robot instance.
I think you can use the functions shown in them as a base for your own programs.
i know about the apGetProperty-method.
I meant if it is possible to access properties, that are usually defined in the teach pendant - for example Payload data.
In this case, you would need to use apGetAttr on the robot instance. With the Attribute Editor, you can see the name of the attributes and their contents (but there is no documentation about how such information is stored).