Danica Patrick has won the Daytona 500 pole, becoming the first woman to secure the top spot for any Sprint Cup race.