One way could be to declare it in a static property in your App.xaml.cs:
public static StreamSocket Socket { get; set; }
Then you can access it from anywhere in the application:
await App.Socket.ConnectAsync(peer.HostName, "{00001101-0000-1000-8000-00805F9B34FB}");