You'll need valid ID to get the license, but they won't check your immigration status. Since you entered the country legally you would normally be eligible to adjust your status after marriage. Make sure you petition to adjust your status once you're married, and recall that if you leave the country before regaining lawful status you'll face a significant period of exclusion from the U.S.