Is it possible to get access to exist session from extension, execute some code there and get response?

I found that I can get list of running session using const sessions = await SessionAPI.listRunning();
But how to create session object based on those data?
Can I get exists object of this session that was create in jupyter lab?
And execute some code e.g. num = 10 and get access to it from jupyter lab?