In icpicp analysis the sample is heated to a temperature in which you don't have compounds and you detect only elements by their emissions.
For compounds there is absortion or fluorescence in which the sample is at near room temperature mostly.
Of course this too general, and the technique to use depends on what you are looking for and where because each technique has its strengths and weakness.