5.1 surround on WD TV?

Can we get 5.1 surround sound from  WD TV ,When we are connect through a surround audio receiver by an optical cable?  Is there  any optical output for audio in WD TV?    And how’s the overall performance of WD TV,   Bad , Good or Best?   I would like to buy WD TV soon , Please help me