There's a pathway for qualitative chemical analysis that is nicely summarized on this Wiki page. It'll be a monster if you have too many metals included from too many groups, or if more exotic metals are included in the sample,
but it's a good place to start.