You can indeed do the check by using the Get Attribute. All you need to do is to indicate the element and get the attribute of the “javastate”.
It will return the string, such as on your screenshot:
“enabled,focusable,visible,showing,opaque” for the checkbox that is not checked and probably
“enabled,focusable,visible,showing,opaque,checked” for the one that is checked
To base a decision on that, you can then use a simple .Contains method on your string:
yourString.Contains(“checked”) -> this will return either True or False, depending if the checkbox is checked or not