A simple experimental setup for temperature dependent mass spectrometric measurements has been constructed. It consists of a heated sample chamber and a mass spectrometer and allows for measurements under inert gas and ambient air. Based on initial measurements on two extruded polystyrene (XPS) samples a methodology for the data analysis has been developed. With this methodology the outgassing temperature of volatile compounds, which were used as blowing agents, has been identified. Furthermore, the composition of the blowing agents has been analyzed by temperature dependent mass spectra. The results indicate the use of ambient air in one material and a mixture of the banned blowing agents R142b and R22, both hydrochlorofluorocarbons (HCFC), in the other material. The here described methodology provides an easy to use approach to identify such compounds, for example as part of environmental or quality control.