I don't know if your modem can do it, but some can.
If you have a data/fax/
voice modem it can (do they still make these combo modem/soundcards?) ...if you have a data/fax, probably not.
If you have the right type of modem, you just need the software. Other than the ancient
Microsoft Phone that came with my 11 year old PC, I am not familiar with that type of software and couldn't make a recommendation for anything that would run on a modern version of Windows. (btw, that is a great article about that amazing old application and what it could do)