The determination of the amount of heme oxygenase 2 in a sample. The trait is EFO_0020436 (heme oxygenase 2 measurement).