Ultrasounds?

When is the earliest you can get an ultrasound done? Vaginal or abdominal