She asked about the safety of her friend.

Literal

She [topic-は] friend [possessive-の] safety [object-を] inquired.

安否を尋ねた (あんぴをたずねた) — 安否 means 'safety, well-being' (literally 'safe-or-not'). 尋ねる is a slightly formal verb for asking or inquiring. A concise expression of concern.