The match will take place at the Amex in the week commencing August 21.
Barnet reached the second round with a 3-1 win at League One Peterborough on Tuesday.
Brighton begin their debut Premier League season at home to Manchester on Saturday, then travel to Leicester before the tie with Barnet.
Don't miss out on all the latest breaking news where you live.
Here are four ways you can be sure you'll be amongst the first to know what's going on.
1 Make this website your homepage
2 Like our Facebook page at facebook.com/pages/Sport-Sussex3 Follow us on Twitter @SportSussex
4 Register with us by clicking on 'sign in' (top right corner). You can then receive our daily newsletter AND add your point of view to stories that you read here.
And do share with your family and friends - so they don't miss out!