It is possible to use CE for this purpose but you need a suited detector. C4D will do the job. If you have a little bit of technical support it is possible to build it yourself. C4D stands for 'capacitive coupled contact less conductivity detection'
If you have a CE system with an absorbance detector, you can use indirect absorbance with good results. Please see: https://www.beckmancoulter.com/wsrportal/bibliography?docname=IB-17136.pdf
For the purpose you need two methods: one for cations and another one for anions. If you are not familiar with CE, especially with method development, I suggest you to apply Analis CE kits for the separations.
CE is very good at ion separations. Normally cations and anions are separated in differenct conditions. EOF must be well controlled for anion separations, since normally nontreated fused silica capillary has EOF in opposite direction to anion electrophoresis migration. Detector is another factor to be considered, as aforementioned, either conductivity or indirect photometry methods.
CE can be used for separation of inorganic cations and anions. For cations usually MES/ His buffer ~6 pH is used, however, you need C4D (capacitively coupled contactless conductivity detector) detector. Capacitance-to-digital detector can also be used: