Moving the search bar position?

I'm trying to do a template edit, which would make the search bar display as a block type thing, meaning that when the screen res is too low, the username inbox and alerts section doesn't appear underneath it, but instead appears on the left of the search bar but on the lower level so that things are still visible.

Any idea where I would begin with this?