There is a script to do this but I can't find it anywhere :S... (But I know
that I saw it on the wiki section).
The best you can do (for now) is to select "Only Free Software" with the F6
Option on the Installation CD (when you put the USB/CD Ubuntu Installation on
your computer and boot, a purple screen appears, just press any button (like
the bottom arrow on the keyboard), and a menu will appear, on this menu just
press F6 (if I remember right, it is the last option), select "Only Free
Software" and press ENTER after that just start normally the Installation by
selecting the first option).
The good part:
(Almost) Only Free Software will be installed.
The Bad Part:
Using non-free Software is quite easy since you can still activate the
non-free repositories on the Repositories Sources software from the Ubuntu
Configuration Tool. The kernel is the one with the non-free
drivers/firmwares, and you still have software Like Firefox installed.
But it is a "good" way to go if you want to test it with the maximum of
non-free software removed without this script (if I find it I will post it
here)