Mapping RefSeq-ID or NCBI-ID (Entrez-ID) to EC number
You can use Entrez Direct for this as follows: 

efetch -db protein -id YP_805528.1 -format gpc -mode xml | xtract -insd Protein EC_number
YP_805528.1     6.3.2.13