Here is a good place to start:
To set the baud rate (and other parameters), you fill in the DCB structure and pass it to SetCommState. This assumes you have already successfully opened a handle to the comm port with GENERIC_READ | GENERIC_WRITE access.