If you have established residence, then the roommate cannot change the locks.
You can call a locksmith to get back in and change the locks. Call a locksmith to meet you at the residence. The locksmith can open the lock and then begin changing it. You must give your roommate a copy of the key asap.
If necessary, call 911 / law enforcement while you are there. You may call the sheriff's office ahead of time to let them know the situation and maybe they can send an officer out at the same time that the locksmith comes out.
You will not get in trouble for breaking the window. You should pay for its repair.
Make sure to have your probation papers available, since it proves that the property is your residence. Also, have handy anything else that proves this, like mail addressed to you there, your I.D. if it states the property as your address, etc.