According to Wikipedia:
“Sex selection is legal in most of the world. There is fertility tourism from the United Kingdom, Australia and Canada to the United States for sex selection, because preimplantation genetic diagnosis (PGD, a potential expansion of IVF), which can be used for sex selection, is prohibited in the UK, Australia and Canada, except when it is used to screen for genetic diseases, while the laws in the US are more relaxed in this subject.
Sex selection is illegal in China, but the Chinese government admits that the practice is widespread, especially in rural areas of China and among lawless groups such as ghettoized migrant workers in cities.”