If you have just met a woman it may be worth asking why the boyfriend issue came to light.
If you think about it a bit, it might be best to save this conversation for later.
So if you agree, just skip asking if she has a boyfriend in the first interaction.
Besides that this question could show too much interest and make you look desperate, it is also a double-edged sword that could end up hurting your efforts.