Is there a way to extract out just the Carrier signal from an AM signal?
You could do this with a Phase Locked Loop (PLL) if your unsure of the carrier frequency. The loop detects phase differences between a sine wave an incoming signal then adjusts its frequency to make the phase difference go to zero.

If you know your carrier frequency and it's fixed a waveform generator will work, or oscillator circuit to generate the frequency.


Source: https://www.radio-electronics.com/info/rf-technology-design/pll-synthesizers/phase-locked-loop-tutorial.php