The Stack Overflow podcast is back! Listen to an interview with our new CEO.
2 of 2 deleted 10 characters in body

For polynomial expressions @Buddha_the_Scientist's suggestion Variables will work. For more general expressions

expr = x^2 + y^3 + z
DeleteDuplicates@Cases[expr, _Symbol, ∞]

Should do the trick in most situations.