Add dilute nitric acid to remove the carbonate and sulfite impurities. Then add silver nitrate, so that the silver ions react with the halide ions to produce a precipitate. If it reacts with chlorine, it'll form a white precipitate. If it reacts with bromine, then it'll form a cream precipitate and yellow precipitate for iodine.