I don't believe that's possible - read-only is for input fields where the user is able to type but the switch box obviously doesn't have this.
The way to indicate to the user that the control isn't active is to disable it, which visually changes the styling.
Can you explain the use case where you want a control which is disabled and can't be used but want it to appear active?