You can do this in a script:
runtime.objects["ObjName"].getFirstInstance().width
In events the only way to do this is to add all objects into a family and pick family instance by ObjectTypeName:
System Pick Family by evaluate Family.ObjectTypeName="ObjName"
After that you can use Family.width