All fax server software does that (esp. Faxination). The question is how do you integrate it with the PSTN. You can either install a T1 card or an IP card and tie them into PBX's or the PSTN directly.
"For every complex problem, there is a solution that is simple, neat and wrong" -- H.L. Mencken