I'm in the CS PhD program at CUNY. I would definitely look into the program at the Graduate Center. CCNY and Baruch don't have separate PhD programs, they are all housed at the Graduate Center. But you can work with pretty much any faculty across CUNY. I recommend that you check out the website and look under research areas to find faculty working in your area of interest. https://www.gc.cuny.edu/Page-Elements/Academics-Research-Centers-Initiatives/Doctoral-Programs/Computer-Science We've admitted non-traditional students into our program over the last few years, so I would definitely say you have a shot, especially if you're able to connect with a professor that you want to work with.
Let me know if you have any questions about the program!