Please have a look at our NI LabVIEW Sound and Vibration Toolset. This toolset provides VIs for sound and vibration, including Shock Response Spectrum. You may find the datasheet for this toolset at the link which I have provided below.
NI LabVIEW Sound and Vibration Toolset
http://sine.ni.com/apps/we/nioc.vp?cid=3122〈=US
As for general algorithms, please perform a general search on "shock response spectrum" via www.google.com (or your preferred search portal). The search I performed turned up many results on algorithms.
Best Regards,
Justin Britten
Applications Engineer
National Instruments