This will always reference the party leader. From here you can get the name, ID, or whatever info you need.
If your checking if a particular actor is the party leader, in a conditional branch, using a script as a condition, use something like this:
$game_party.actors[0].id == ID_OF_ACTOR
This will result in a true/false if the actor ID you defined is the party leader.