The CPUID instruction can be used to check whether the central processing unit (CPU) supports the RDRAND instruction.
CPUID
RDRAND