The energy is easy: measure the energy of the decay products in the detector. Calculating the invariant mass also allows to find the mass of the particle.
Spin is a bit more complicated, you have to measure the angular distribution of decay products or (for electron/positron colliders) use the polarization of the incoming particles. Formulas depend on what exactly you want to measure.