Measuring Voltage of Unknown Type
If you set your multimeter to DC(V) and then measure an AC(V) it will not cause damage, neither will the opposite.

If you measure it with both, and one says 5 V, then that is what signal you have. 5V AC wave will not be anything on DC measurement, but will be 5V with AC turned on.