arduino due

how the sine wave is generated from Arduino due?

You can either output directly a sine wave via the builtin DACs, or output PWM pulses and add an RC filter.

can the voltages are displayed in serial monitor?

Yes