Not sure what you mean but there’s no such ‘Stencil Buffer’ for objects AFAIK, everything goes straight to the deferred renderer which renders the GBuffer’s, and the final image is composited from those.
You can render the sphere in a separate pass, known as Custom Depth in Unreal, which is kind of like a stencil. That might be what you want to look into?