Specific software, for instance RawDigger, FastRawViewer, Histogrammar or the discontinued Photobola Rawnalyze, can be used to compute the raw histogram.
Specific applications for calculating raw histograms include programs like RawDigger, FastRawViewer, Histogrammar, and the discontinued Photobola Rawnalyze.