The values in the panel are not accessible via Phyton because they are calculated depending on the selected geometry. You can make the calculation yourself using the following script:
import bpy
from mathutils import Vector
obj = bpy.context.active_object
if obj and obj.type == "MESH" and bpy.context.mode == 'EDIT_MESH':
if obj.data.total_vert_sel > 0:
obj.update_from_editmode()
verts_sel = [v.co for v in obj.data.vertices if v.select]
median_local = sum(verts_sel, Vector()) / len(verts_sel)
median_global = obj.matrix_world @ median_local
print("Global:", tuple(median_global))
print("Local:", tuple(median_local))