Ways to achieve victory are,
Siege and wipe out all of your enemy's colonized planets.
Have them surrender.
If you have a peace treaty with another faction, you won't actualy have to wipe them out.
Few things to keep in mind,
AI basicly never surrenders.
AI must allways be at war with someone no matter what.