I’m not sure but maybe just ls -l /sys/... for whatever you are trying to change. If the permissions start -r-- then the parameter is read-only. If the permissions start -rw- then the parameter is read-write. That would be sensible and straightforward.