You didn't mention the type of iMac she has so this assumes she has the latest operating system. She has to make sure her Mac has an active internet connection (you might need to check that for her first).
Here's and Apple page on how to setup Messages on her Mac. Yes, she can use Messages on her Mac to text to anyone with an email address or phone number.