Streaming with a console is possible either with a capture card and a desktop or with console-specific software solutions.
Capture Card
Capture cards help you capture gameplay from your console to stream that content.
PlayStation Remote Play
Capturing your PlayStation is also possible with Remote Play. This will allow you to mirror your games to your desktop and use them as a source for your streams.
Xbox Remote Play
Xbox also supports a Remote Play solution on Windows. You can then pull that gameplay into a streaming software and broadcast it live.