Non carbon containing compounds

For carbon containing compounds it is known that UV detector can be good to detect impurities containing carbon, but what instrument would be good for detecting impurities which have no carbons?