How to distinguish a DC generator from an AC generator
The easy way is to use AC tester. If the generator is DC, then the tester won't glow. Take a look here

Otherwise, I think two diodes may help you. 







simulate this circuit &ndash; Schematic created using CircuitLab

If it is DC, one of the diode will be off.