From what I could gather from the show, young unicorns attempting to cast magic they don't know, usually have sparks fly off of their horns when they are concentrating hard enough and on the verge of succeeding in the spell.