A strongly acidic ion exchange column will remove Mg2+, replacing it with 2H+. This then leaves you with HCl and boric acid in water (assuming the counterion to Mg is Cl) - evaporation should leave boric acid.
However, it would be more economical to buy more boric acid - its only £30-£40 for 1 kg from Sigma.