I haven't been able to find specific regulation regarding electric fireplaces, but I have found this in another forum:
Worth checking the manufacturers instructions as most heating appliances state that they must be kept a minimum distance away from combustible materials, so depending how boxed...