Some providers do send costs as part of the response, ofcourse the availability of this depends on your provider. Use a php script to determine the costs before-hand to avoid a client sending 1000 messages when they have credit for 200.
Kind Regards, Makhanu Sinja