Use this snippet to get the bodies, filter to only surface bodies, and append the thickness to the name.
Bodies = ExtAPI.DataModel.GetObjectsByType(DataModelObjectCategory.Body)
for B in Bodies:
if B.GeometryType==GeometryType.Surface:
B.Name+=" (" +str(B.Thickness)+")"