welcome to the forum. I assume with OSC you are referring to Open Sound Control (acronyms are usually less obvious and unambiguous than one might think, please resolve them in the future)? Neither the Python standard library nor Cinema4D do natively support OSC, there are however multiple Python packages available that deal with OSC .
A XPresso node has in principal the same level of system access like even the most elaborate plugin, but it lacks persistence as all scripting nodes do. That means that a node is being executed and then c4d "forgets" the node until the node has to be executed again, causing you to loose all states, variables, and data which you have not passed out of the node. With some experience you can "hack" your way around this problem by storing your data in the interpreter, but I would not recommend doing it.
Since with OSC you will have to establish a client-server communication, this will most likely be a problem and you will probably need some sort of persistent plugin like a
CommandData plugin. Also as general point of advice: While Cinema's Python interpreter is as vanilla as it gets, I would recommend experimenting with OSC in a python.org default interpreter. This will remove any uncertainties that might come up when facing unexpected problems that client-server stuff and smaller third party packages can sometimes present.