I misread your question. You can say So I have! as an exclamation, as in:
A: You've got your shirt buttoned wrong.
B: So I have! Thanks for pointing it out.
You can't respond to I have to wear a uniform at school with "So I have." You'd have to invert subject and verb as you did in your quoted dialog.