Welcome to our online community. It sounds like you've been having a really difficult time. We're so sorry to hear that you aren't able to be with your kids all the time right now - we understand how heartbreaking this must be. Please know that you're not alone in this.
You mentioned that you were recently incarcerated due to mental health issues. Can we ask if you are receiving mental health support following this?
Please know that there is always support available. If you need to talk to someone tonight, Lifeline is a national charity providing all Australians experiencing emotional distress with access to 24 hour crisis support and suicide prevention services. You can call them 24/7 on 13 11 14, or chat with them online 7pm-midnight AEDT - https://www.lifeline.org.au/crisis-chat/
Please also feel free to keep the community updated here on how you're going. This is a safe, non-judgemental space and we hope that this brings you some comfort.