I know that you can mess with NPCs when you know their ID. For example typing in the console:
prid 3f2bb
moveto player
Selects Strong as target (where ever he may be) and then moves him to the player.
But how can I find out the ID of any random NPC that I encounter in the game? Is there a way to click on them and maybe type "get base_id" or so?