Whether or not you may drink coffee prior to an ultrasound depends on the purpose of the ultrasound. For an abdominal ultrasound, some doctors indicate that you must have a completely empty stomach. However, fasting is not necessary in most cases.