Yes, you can attach the database from network drive, please do with your own risk. Just follow the following command.

–Turn On Allow Attach from Network Drive (UNC)
DBCC TraceOn(1807)

–Attach the database
EXEC sp_attach_db @dbname = N’DatabaseName’,
   @filename1 = N’\\ServerName\SQL Data\DatabaseName_Data.MDF’,
   @filename2 = N’\\ServerName\SQL Log\DatabaseName_Log.LDF’

–Turn Off Allow Attach from Network Drive (UNC)
DBCC TraceOff(1807)