If you want to record locally what you're streaming to Youtube as local copy, use the recording functionality of OBS. To avoid everything being encoded twice, change the recording quality to "same as stream" (if you're using simple output mode), or if you're using advanced output mode, set the encoder for recording to "(use stream encoder)".