Sex selection for family balancing

Lily • Navy Wife❤️Mom

My husband and i have 2 boys and are expecting our third boy. I was wondering if sex selection procedures are legal in the US for family balancing purposes. I am not entirely sure how it works or how expensive it is.