Apple does not provide any methods to determine if a message is sent as "iMessage" or "SMS."
In addition, your message will not be sent as iMessage if you are not connected to the Internet. If you have a slow Internet connection, your message will be automatically sent as SMS.
If the recipient is available as an iMessage client and iMessage is enabled on your device, your message will be sent as iMessage. And if at that time you are not connected to the Internet, then the "send" button will be automatically disabled.
source share