You can sue them, whether or not you are successful is a different question. You would have to show that you had major, long lasting damages. While Zoloft can cause sleep walking like behavior, you would first have to prove that the criminal acts you did were a result of the Zoloft and not you being a criminal and that you didn't know it was causing you to do that. First, you need to take care of the criminal charges. Talk to your attorney. If he is successful in presenting a Zoloft defense, then you could possibly have a case.
There are time limits to filling a product liability claim, which this would be. Call malpractice attorneys in your area and see if they are interested. Also, try googling zoloft lawsuit and talk to some of those attorneys.
I used to do malpractice intake calls. A lot of people try to make that claim and the attorneys I worked for wouldn't take those cases. But some might, usually a specialty national law firm.
So far, the only Zoloft suits I've seen relate to birth defects. Although some anti-depressants can cause behavior changes, I don't think Zoloft is one of them. It usually affects teens and young adults the most.