Apparatus has been developed to analyse alloys in tiny amounts, it's even dubbed "non-destructive". In one usual process, a spark volatilizes a miniscule volume at the surface, and the resulting plasma emits light whose spectrum tells the elements present.
I suppose, but am not sure, that it will tell you the non-metals too, including O, Cl, but not H. C, P, S belong to the usual results. It will not tell a molecular composition.
One uncertainty is: what exactly will be analysed. The electrode must be free of electrolyte, including dry salt, but during the cleaning you may remove some of the deposited or grown layer.