Depends on the tone
If you don't want to be nosy, don't ask. IMO. And if the person didn't want to tell you, they won't tell you either way. So what's the point?
Saw your edit: Maybe that was the intention. But then say "I don't want to be nosy but I hope everything's okay"
And leave it at that
(and for anyone who is wondering, everything is fine BH)