Are both correct?

She got her mother committed/locked up for schizophrenia.



"Committed" is the usual term among the general public for being involuntarily confined to a psychiatric hospital. "Locked up" generally refers to jail, and where I come from they don't put you in jail for that. But you could say "locked up" as a cruel jocularity.