Select a ship owned by another faction and press the scan button or key (default: Q) to display a small screen giving basic information about the ship, its weaponry and what's in its cargo bays.