You will need to use:
DEFINE_ON_DEMAND macro.
You will also need DEFINE_DPM_BC to get the average of properties. Hook this macro to the boundary condition where you want the averaged properties.
At the end of simulation run, execute DEFINE_ON_DEMAND macro using execute_on_demand to display the averaged properties on the window.
I hope this helps.