You should contact the consulate and ask this very question, we thing that you might noy have a problem with visitation. BUT, we are not 100% and if you are illegal, walking into a penal facility might be the wrong place for you to be altogether.
https://www.inmateaid.com/ask-the-inmate/i-am-an-illegal-immigrant-can-i-visit-my-husband-with-a-state-issued-id#answer
Accepted Answer Date Created: June 06,2016