How do I get Skylight output as a cubemap

I can input a cubemap to a dynamic skylight and that works fine. I’d like to take the skylight output, also as a cubemap. I assume that skylight performs a convolution on the input texture, so I now need to take the final cubemap (if it is a cubemap) and send that back to an external DLL via C++. How can I get a pointer to this texture?