Change button color or state when obtaining a console command

Hello,

I have and options settings based in buttons. I need to read the current state of a console comand (ie: sg.PostProcessQuality) and then change the corresponding button to another state (or color) just to know what is the current setting.

Thanks!