How to calculate the stored energy as the result of a deformation in SOLIDWORKS Static Simulation?

I apply a force on a part and it's deformed in its elastic region. So I need to calculate the stored energy (Elastic potential energy) that will be released after removing the applied force.