RC Version on Filesystem

Hi,

I want to automate the update process via a bash script.
Does anyone know where i can see the installed RC Version on filesystem or any other way?