Default [Q] A/0 and ciphering indicator

Is there a API call for checking if the connection to the base station is encrypted with A/1 or A/3 or if there is no encryption (A/0). And is the base band open source? I was looking for an answer but couldn't find a yes you can - or no you can't. Why does nobody care about that issue?