Variables
Variables[poly] gives a list of all independent variables in a polynomial.
See The Mathematica Book: Section 3.3.2. See also: Coefficient.
Further Examples